package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;
import com.aiyige.model.CreateRefundOrder;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * 创建订单
 * Created by xiachao
 */

public class CreateRefundOrderFeesRequest {

    CreateRefundOrder createRefundOrder;

    private CreateRefundOrderFeesRequest(Builder builder) {
        createRefundOrder = builder.createRefundOrder;
    }

    public static Builder newBuilder() {
        return new Builder();
    }



    public CreateRefundOrder getCreateRefundOrder() {
        return createRefundOrder;
    }

    public void setCreateRefundOrder(CreateRefundOrder createRefundOrder) {
        this.createRefundOrder = createRefundOrder;
    }

    public static final class Builder {
        private CreateRefundOrder createRefundOrder;

        private Builder() {
        }

        public Builder createRefundOrder(CreateRefundOrder val) {
            createRefundOrder = val;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().createRefundOrder(createRefundOrder);
        }
    }
}
